LinuxQMISDK-Lite  SLQS04.00.27
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
QmiSyncObject Struct Reference

Data Fields

pthread_mutex_t mutex
 
pthread_cond_t condition
 
uint8_t buffer [(2048-6)]
 
uint16_t bufferSize
 

Detailed Description

This structure is a wrapper around a mutex and condition object and a buffer. It is a convenience object which may be used to create synchronous QMI APIs.

Parameters
mutex
  • For thread safety.
condition
  • Triggered on completion.
buffer
  • QMI request packet is written to this buffer. On request completion, contains the QMI response packet.
bufferSize
  • Set to size in bytes of QMI request packet. On request completion, set to size of QMI response packet.
Note
The buffer is intended for QMI packet only i.e. QMI header and QMI payload. This buffer becomes the SDU of a QMUX packet.

Field Documentation

uint8_t QmiSyncObject::buffer[(2048-6)]
uint16_t QmiSyncObject::bufferSize
pthread_cond_t QmiSyncObject::condition
pthread_mutex_t QmiSyncObject::mutex

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved